From 2ea876d2a0175ed238ce978ec21b7c9694785e54 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 9 Nov 2005 14:42:15 +0100 Subject: [PATCH] Attached patch allows building of netfront and blkfront as modules (xennet.ko and xenblk.ko). Signed-off-by: Jeremy Katz --- linux-2.6-xen-sparse/arch/xen/Kconfig | 4 ++-- linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile | 4 +++- linux-2.6-xen-sparse/drivers/xen/netfront/Makefile | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/linux-2.6-xen-sparse/arch/xen/Kconfig b/linux-2.6-xen-sparse/arch/xen/Kconfig index 790c2d82e1..6912d1ce7d 100644 --- a/linux-2.6-xen-sparse/arch/xen/Kconfig +++ b/linux-2.6-xen-sparse/arch/xen/Kconfig @@ -94,7 +94,7 @@ config XEN_TPMDEV_CLOSE_IF_VTPM_FAILS Say Y if you want this feature. config XEN_BLKDEV_FRONTEND - bool "Block-device frontend driver" + tristate "Block-device frontend driver" default y help The block-device frontend driver allows the kernel to access block @@ -103,7 +103,7 @@ config XEN_BLKDEV_FRONTEND (domain 0), then you almost certainly want to say Y here. config XEN_NETDEV_FRONTEND - bool "Network-device frontend driver" + tristate "Network-device frontend driver" default y help The network-device frontend driver allows the kernel to access diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile b/linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile index 5d1707dd74..182ef6531d 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/Makefile @@ -1,3 +1,5 @@ -obj-y := blkfront.o vbd.o +obj-$(CONFIG_XEN_BLKDEV_FRONTEND) := xenblk.o + +xenblk-objs := blkfront.o vbd.o diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/Makefile b/linux-2.6-xen-sparse/drivers/xen/netfront/Makefile index 7eb07a2483..dc22829f51 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/Makefile +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/Makefile @@ -1,2 +1,4 @@ -obj-y := netfront.o +obj-$(CONFIG_XEN_NETDEV_FRONTEND) := xennet.o + +xennet-objs := netfront.o -- 2.30.2